package com.zrrd.learn.chapter08面向对象;

/**
 * 数学帮助类
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/25 15:21
 */

public class MathMyself {

    /**
     * 单一职责
     * 高内聚一个 低耦合 耦合
     */


    public static void main(String[] args) {
        int x = 9;
        int y = x + 3;
        System.out.println(x);
        System.out.println(y);

    }


    public static int add(int x, int y) {
        return x + y;
    }

    public static int subtract(int x, int y) {
        return x - y;
    }

    public static int chengfa(int x, int y) {
        return x * y;
    }

    public static int chufa(int x, int y) {
        return x / y;
    }

}